﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TemplateModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="maincontent" id="tabcontent">
        <h2>
            View My SMS Template</h2>
        <div id="datagrid">
            <% using (Ajax.BeginForm("deleteTemplates", "template", new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "template", Confirm = "Are You Sure to do this action" }, FormMethod.Post))
               {%>
            <%  Html.RenderPartial("historygrid");
            %>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="46%" class="button">
                        <input type="button" name="selectall" class="button" value="全选" />
                        <span class="input">&nbsp;</span><input type="submit" name="delete" value="删除" class="button" />
                        <span class="input">&nbsp;</span><input type="button" name="add" value="新增" class="button" />
                    </td>
                    <td width="54%" align="right" class="pagination">
                        <%Html.ShowPagination(Model.page, Model.maxpages, Model.key); %>
                        <div class="clear">
                        </div>
                    </td>
                </tr>
            </table>
            <%  } %>
        </div>
    </div>
    <div id="cetd" style="">
        <div class="label">
            Template</div>
        <textarea name="msg" id="msg"></textarea>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    <link rel="stylesheet" type="text/css" href="<%:Url.Content("~/Content/css/themes/default/easyui.css")%>" />
    <link rel="stylesheet" type="text/css" href="<%:Url.Content("~/Content/css/themes/icon.css")%>" />
    <link href="<%:Url.Content("~/Content/css/icons.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%:Url.Content("~/Content/css/template.css")%>" rel="stylesheet" type="text/css" />
    <script src="<%:Url.Content("~/Content/js/jquery.easyui.js")%>"></script>
    <script src="<%:Url.Content("~/Content/js/jquery.mask.js")%>"></script>
    <script src="<%:Url.Content("~/Content/js/jquery.alcatel.datagrid.js")%>"></script>
</asp:Content>
